package com.designmodel.created.singleton;

/**
 * 静态内部类 线程安全
 *
 * @author think
 * @version 1.0.0
 */
public class Singleton2 {

    private static class SingletonInner {

        private static Singleton2 singletonInner = new Singleton2();
    }

    private Singleton2() {
    }

    private static Singleton2 getInstance() {
        return SingletonInner.singletonInner;
    }
}
